<template>
  <view class="content">
    <!-- 收藏夹 -->
    <grzxsytab :titleName="favorites" class="tab"></grzxsytab>
    <grzxsytab :titleName="titleName"></grzxsytab>
  </view>
</template>

<script>
const app = getApp();
import grzxsytab from "./grzxsytab.vue";
export default {
  data() {
    return {
      list: [
		  
		    {
		      "title": "绿宝石/一级绿无核绿干/2级半绿无核葡萄干",
		      "img": "https://image.cnhnb.com/image/jpg/2023/08/26/909a04a0536f4db2a5bdbcae4adbaf55.jpg?imageView2/1/w/351/h/351/format/jpg/interlace/1/q/100!/ignore-error/1",
		      "price": "3.30元/斤",
		      "shop": "高昌区天山果园瓜果商行",
		      "address": "陕西澄城县",
		      "tag": [
		        "保证金2000元",
		        "48小时发货",
		        "48小时发货"
		      ]
		    },
		    {
		      "title": "苹果",
		      "img": "https://image.cnhnb.com/image/png/head/2021/12/04/83c0a416c3124ae591c6944d99e3367b.png?imageView2/1/w/351/h/351/format/jpg/interlace/1/q/100!/ignore-error/1",
		      "price": "5.00元/斤",
		      "shop": "果园商店",
		      "address": "某某省某某市",
		      "tag": [
		        "农场直供",
		        "新鲜水果"
		      ]
		    },
		    {
		      "title": "香蕉",
		      "img": "https://image.cnhnb.com/image/jpg/2023/09/19/d44207ff53534d088c2bc14503047374.jpg?imageView2/1/w/351/h/351/format/jpg/interlace/1/q/100!/ignore-error/1",
		      "price": "2.50元/斤",
		      "shop": "水果超市",
		      "address": "某某省某某市",
		      "tag": [
		        "特价",
		        "季节水果"
		      ]
		    },
		    {
		      "title": "香蕉",
		      "img": "https://image.cnhnb.com/image/jpg/2023/09/19/d44207ff53534d088c2bc14503047374.jpg?imageView2/1/w/351/h/351/format/jpg/interlace/1/q/100!/ignore-error/1",
		      "price": "2.50元/斤",
		      "shop": "水果超市",
		      "address": "某某省某某市",
		      "tag": [
		        "特价",
		        "季节水果"
		      ]
		    },
		    {
		      "title": "香蕉",
		      "img": "https://image.cnhnb.com/image/jpg/2023/09/19/d44207ff53534d088c2bc14503047374.jpg?imageView2/1/w/351/h/351/format/jpg/interlace/1/q/100!/ignore-error/1",
		      "price": "2.50元/斤",
		      "shop": "水果超市",
		      "address": "某某省某某市",
		      "tag": [
		        "特价",
		        "季节水果"
		      ]
		    },
		    {
		      "title": "香蕉",
		      "img": "https://image.cnhnb.com/image/jpg/2023/09/19/d44207ff53534d088c2bc14503047374.jpg?imageView2/1/w/351/h/351/format/jpg/interlace/1/q/100!/ignore-error/1",
		      "price": "2.50元/斤",
		      "shop": "水果超市",
		      "address": "某某省某某市",
		      "tag": [
		        "特价",
		        "季节水果"
		      ]
		    },
		    {
		      "title": "香蕉",
		      "img": "https://image.cnhnb.com/image/jpg/2023/09/19/d44207ff53534d088c2bc14503047374.jpg?imageView2/1/w/351/h/351/format/jpg/interlace/1/q/100!/ignore-error/1",
		      "price": "2.50元/斤",
		      "shop": "水果超市",
		      "address": "某某省某某市",
		      "tag": [
		        "特价",
		        "季节水果"
		      ]
		    }
		  
	  ],
      titleName: "猜你喜欢",
      favorites: "全部宝贝",
    };
  },
  //注册组件
  components: {
    grzxsytab,
  },
  methods: {
    fetchData() {
      uni.request({
        url: app.globalData.Domain_Name + "/grzxtablist.json",
        success: (res) => {
          this.list = res.data;
          console.log("请求成功", res);
        },
        fail: (err) => {
          console.error("请求失败", err);
        },
      });
    },
  },
  created() {
    // this.fetchData();
  },
};
</script>

<style lang="scss" scoped>
.content {
  overflow: auto;
  height: 100%;
}
.tab {
  margin: 0;
}
</style>
